using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VotingSystem.Models
{
    public class OptionResponse
    {
        [Key]
        public int Id { get; set; }

        [Required]
        public int QuestionResponseId { get; set; }

        [Required]
        public int OptionId { get; set; }

        [ForeignKey("QuestionResponseId")]
        public QuestionResponse? QuestionResponse { get; set; }

        [ForeignKey("OptionId")]
        public QuestionOption? Option { get; set; }

        public OptionResponse()
        {
        }
    }
} 